Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve rule configuration #314

Merged
merged 3 commits into from
Dec 25, 2024

Conversation

theseion
Copy link
Contributor

  • Configure rules to update in a separate configuration file
  • Use generic script to configure rules that doesn't rely on exact match of rule
  • Log which rules are configured
  • Log when a rule that should be configured wasn't found

@theseion theseion requested a review from fzipi December 22, 2024 14:34
@theseion theseion force-pushed the improve-rule-configuration branch 4 times, most recently from 32ebed2 to 2f1b656 Compare December 23, 2024 09:29
fzipi
fzipi previously approved these changes Dec 23, 2024
Copy link
Member

@fzipi fzipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it is difficult to have tests for this I guess.

@theseion theseion force-pushed the improve-rule-configuration branch 7 times, most recently from 9a7e956 to bb4f450 Compare December 24, 2024 09:16
- Configure rules to update in a separate configuration file
- Use generic script to configure rules that doesn't rely on exact match
  of rule
- Log which rules are configured
- Log when a rule that should be configured wasn't found
@theseion theseion force-pushed the improve-rule-configuration branch 9 times, most recently from a7ef97c to 8b1857a Compare December 24, 2024 11:06
@theseion theseion force-pushed the improve-rule-configuration branch from 8b1857a to 9f08de4 Compare December 24, 2024 11:14
@theseion
Copy link
Contributor Author

@fzipi I've implemented a simple way to test the logic. That did uncover a few issues with the code I had written.

Copy link
Member

@fzipi fzipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@theseion theseion merged commit 1c688ca into coreruleset:main Dec 25, 2024
5 checks passed
@theseion theseion deleted the improve-rule-configuration branch December 25, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants